<div class="main">
        <div class="inside">
        	<h1>My Offer</h1>
        	<h2>Track the status of your Orange Offer</h2>
        	
			<table width="100%" border="0" cellspacing="20" cellpadding="0" style="margin-top:10px">
			  <tr valign="top">
			    <td valign="top" width="350px">			    	
			        Please enter your Orange Offer number along with the email address entered during checkout:
			        <br/><br/><br/>               
			        <form action="<?php echo Yii::app()->createUrl("/offers");?>" method="POST">
			        
					<table cellspacing="20px">
						<tr valign="middle">
							<td><b>Offer #</b></td>
							<td>&nbsp;&nbsp;&nbsp;<input type="text" class="chkInput" maxlength="10" name="tradenum" value="<?php echo $tradenum;?>" /></td>
						</tr>
						<tr><td>&nbsp;</td></tr>
												<tr>
							<td><b>Email Address</b></td>
							<td>&nbsp;&nbsp;&nbsp;<input type="text" class="chkInput" maxlength="100" name="email" value="<?php echo $emailPost;?>"  /></td>
						</tr>
						<tr>
							<td align="center" colspan="2"><br/><br/><input type="image" src="<?php echo baseTheme();?>/images/go-button.jpg" value="Go" name="Go" />
						</tr>
					</table>		
					</form>
			      </td>
			      <td width="20px">&nbsp;</td>
			      <td valign="top" width="300px" >
			      	<div style="border:solid 1px orange;padding:10px 10px 10px 10px;height:360px;
							border:solid 2px orange;
							font-size:14px;
							border-style: solid;
							border-radius:21px; 
							-moz-border-radius: 21px; 
							-webkit-border-radius: 21px;
							padding-left: 10px;">
								<?php
								if($statusResult){
									$gadget = array();
									if(!empty($customerquote)){
										
										if(!empty($customerquote->quote)){
											$quote = $customerquote->quote;
											$condition = array();
											$namecondition = "";
											if(!empty($quote->condition)){
												$condition = $quote->condition;
												$namecondition = $condition->name;
											}
											if(!empty($quote->gadget)){
												$gadget = $quote->gadget;
												
								?>
												<table cellspacing="20px">
													<tr valign="top">										
														<td width="240px" align="left">										
																
															<b>
															<?php echo $gadget->name;?>
															</b> <br/>
															
															
															<b>Quality Grade:</b> 
															<b style="color:#E6740D;font-size:17px">											
															<?php echo $namecondition;?>
															</b> <br/>
															
															
															<b>Orange Offer:</b> 											
															<b style="color:#E6740D;font-size:17px">$<?php echo $price;?></b> 
															<br/>
															
															
															<b>Pay Preference:</b> <b style="color:#E6740D;font-size:17px"><?php echo $paymentMethod;?></b> <br/>
															
															<br/>
															
															<b>Offer Status:</b>
															<br/><br/>
																						
															<span style="font-size:20px;color:orange"><?php echo $txtStatus;?></span><br/>
															<br/>We are <?php echo strtolower($txtStatus);?> for your package to arrive at our facilities.										</td>
														<td width="240px" style="font-size:13px" align="center">
															
															<img src="<?php echo Yii::app()->baseUrl;?>/uploads/products/fill/200-200/<?php echo $gadget->imageUrl;?>" alt="<?php echo $gadget->name;?>" />
																<br clear="all"/>
																							
														</td>																	
													</tr>
												</table>
								<?php
											}
											
										}
										
										
									}

								}else{
								?>
									<center><br/><br/><br/><br/><br/><h2>Offer Status</h2><i>Enter your <b>Orange Offer</b> information<br/>the view the status of your offer! <br/><br/></center>
								<?php
								}
								?>
								
			      							
								
						
									      		</div>
			      </td>
			  </tr>
			</table>
			
			<br/><br/>
			<br/><br/>
			<br/><br/>
			<br/><br/>            	
            			
        </div>
    </div>